package com.ruoyi.linkage.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.linkage.Vo.LinkageStrategyVo;
import com.ruoyi.linkage.domain.LinkageStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

/**
 * 联动策略Mapper接口
 *
 * @author pengjie
 * @date 2023-12-20
 */

public interface LinkageStrategyMapper
{
    /**
     * 查询联动策略
     *
     * @param linkageStrategyId 联动策略主键
     * @return 联动策略
     */
    public LinkageStrategy selectLinkageStrategyByLinkageStrategyId(String linkageStrategyId);

    /**
     * 查询联动策略列表
     *
     * @param linkageStrategy 联动策略
     * @return 联动策略集合
     */
    public List<LinkageStrategy> selectLinkageStrategyList(LinkageStrategy linkageStrategy);

    /**
     * 新增联动策略
     *
     * @param linkageStrategy 联动策略
     * @return 结果
     */
    public int insertLinkageStrategy(LinkageStrategy linkageStrategy);

    /**
     * 修改联动策略
     *
     * @param linkageStrategy 联动策略
     * @return 结果
     */
    public int updateLinkageStrategy(LinkageStrategy linkageStrategy);

    /**
     * 删除联动策略
     *
     * @param linkageStrategyId 联动策略主键
     * @return 结果
     */
    public int deleteLinkageStrategyByLinkageStrategyId(String linkageStrategyId);

    /**
     * 批量删除联动策略
     *
     * @param linkageStrategyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLinkageStrategyByLinkageStrategyIds(String[] linkageStrategyIds);

    /**
     * 查找联动策略信息
     *
     * @param linkageStrategyVo
     * @return 结果
     */
    List<LinkageStrategy> selectLinkageStrategyListOrder(LinkageStrategyVo linkageStrategyVo);

}
